﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="admin_login.aspx.cs" Inherits="admin_admin_login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>最佳推荐网站后台管理系统登录</title>
    <script type="text/javascript" language="javascript">
    function empty()
    {
        form1.username.value="";
        form1.userpwd.value="";
        form1.number.value="";
    }
    </script>
<link href="css/css.css" rel="stylesheet" type="text/css" />
</head>
<body style="text-align: center">
    <form id="form1" runat="server">

    <div align="center" style="width:800px; overflow:hidden; margin-left:auto; margin-right:auto;">
        &nbsp;<br />
        <br />
        <br />
        <br />
        <TABLE WIDTH=800 BORDER=0 CELLPADDING=0 CELLSPACING=0 align="center">
	        <TR style="width:800px; text-align:left; float:left;">
		        <TD COLSPAN=6>
			        <!--<IMG SRC="image/topbk_background.jpg" WIDTH="100%"  ALT="">-->
			        <img src="image/login_9.jpg" width="800px" /></TD>
	        </TR>
	        <TR style="width:800px; text-align:left; float:left; overflow:hidden;">
		        <TD ROWSPAN=3>
			        <IMG SRC="image/login_2.gif" width="100%" HEIGHT=163 ALT=""></TD>
		        <TD COLSPAN=2 style="background-image: url(image/login_3.gif); text-align:left;">
                    <table style="font-size: 12px;">
                        <tr>
                            <td style="width: 100px; height: 12px; text-align:left;">
                                <asp:Label ID="Label2" runat="server" Width="50px" Text="用户名："></asp:Label></td>
                            <td style="width: 500px; height: 12px">
                                <asp:TextBox ID="username" runat="server" Height="12px" Width="60px"></asp:TextBox>
                                
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="username"
                                    ErrorMessage="*用户名不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="username"
                                    Display="Dynamic" ErrorMessage="*只能输入5-20个以字母开头、可带数字、“_”的字串" ValidationExpression="^[a-zA-Z]{1}([a-zA-Z0-9]|[_]){4,19}$"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 100px; height: 12px; text-align: left;">
                                
                                <asp:Label ID="Label3" runat="server" Width="50px" Text="密码："></asp:Label></td>
                            <td style="width: 500px; height: 12px">
                                <asp:TextBox ID="userpwd" runat="server" Height="12px" Width="60px" TextMode="Password"></asp:TextBox>
                               <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="userpwd"
                                    ErrorMessage="*密码不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="userpwd" Display="Dynamic" 
                                 ErrorMessage="*密码格式有误" ValidationExpression="^[a-zA-Z]\w{5,17}$"></asp:RegularExpressionValidator>
                          
                                
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 100px; height:12px; text-align:left;">
                                
                                <asp:Label ID="Label4" runat="server" Width="50px" Text="验证码："></asp:Label></td>
                            <td style="width: 500px; height:12px;">
                                <asp:TextBox ID="txtCheckCode" runat="server" Height="12px" MaxLength="4" Width="32px"></asp:TextBox>
                                <asp:Image ID="check_pic" ImageUrl="../CheckCode.aspx" runat="server" />
                                <asp:Label ID="lblMessage" runat="server" ForeColor="#FF3300" Visible="false" Text=""></asp:Label>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtCheckCode" Display="Dynamic"
                                        ErrorMessage="*验证码不能为空"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                    </table>
                </TD>
		        <TD COLSPAN=2>
			        <IMG SRC="image/login_4.gif" width="100%" HEIGHT=93 ALT="" ></TD>
	        </TR>
	        <TR>
		        <TD style="height: 31px; text-align:left; float:left;">
                    <asp:ImageButton ID="ImageButton1"  runat="server" ImageUrl="image/login_5.gif" OnClick="ImageButton1_Click" /></TD>
		        <TD COLSPAN=2 style="height: 31px; text-align:left; float:left;">
                    <img src="image/login_6.gif"  onclick="empty()" style="cursor:hand"/></TD>
		        <TD ROWSPAN=2>
			        <IMG SRC="image/login_7.gif" width="100%" HEIGHT=70 ALT=""></TD>
	        </TR>
	        <TR>
		        <TD COLSPAN=3>
			        <IMG SRC="image/login_8.gif" width="100%" HEIGHT=39 ALT=""></TD>
	        </TR>
	        
        </TABLE>
        
        <div class="css" style="width:800px; background-image: url(image/default_14.gif); background-repeat:repeat; height: 41px;text-align:center;">
                <br />
                <%--<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="../index.aspx">Web技术与应用课程网站</asp:HyperLink>--%>
                © copyright 2012-2013 源折扣. All rights reserved.
	    </div> 
    </div>

        <span style="color:Red; font-size:9px;">（密码以字母开头，长度在6~18之间，只能包含字符、数字和下划线）</span>       
        <%--<asp:ValidationSummary ID="ValidationSummary1" runat="server" Font-Size="12px" />--%>
    </form>
</body>
</html>
